package com.springdoor.wx.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class ResultSku implements Serializable {

    private static final long serialVersionUID = 1L;

    private String skuId;

    /** 部门名称 */
    private String store;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date putonTime;

    /** 商品编码 */
    private String gNumber;

    /** 商品名称 */
    private String title;

    /** 品牌 */
    private String intro;

    /** 价格 */
    private Integer price;

    /** 历史最高价格 */
    private Integer originPrice;

    /** 销售数量 */
    private Integer soldNum;

    /** 库存 */
    private Integer spuStockQuantity;

    /** 图片地址 */
    private String thumb;

    /** 显示顺序 */
    private Integer orderNum;
    /** 状态（0未上架 1已上架 2已售空 3已断货） */

    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String available;

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public Date getPutonTime() {
        return putonTime;
    }

    public void setPutonTime(Date putonTime) {
        this.putonTime = putonTime;
    }

    public String getgNumber() {
        return gNumber;
    }

    public void setgNumber(String gNumber) {
        this.gNumber = gNumber;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(Integer originPrice) {
        this.originPrice = originPrice;
    }

    public Integer getSoldNum() {
        return soldNum;
    }

    public void setSoldNum(Integer soldNum) {
        this.soldNum = soldNum;
    }

    public Integer getSpuStockQuantity() {
        return spuStockQuantity;
    }

    public void setSpuStockQuantity(Integer spuStockQuantity) {
        this.spuStockQuantity = spuStockQuantity;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("skuId", getSkuId())
                .append("store", getStore())
                .append("putonTime", getPutonTime())
                .append("gNumber", getgNumber())
                .append("title", getTitle())
                .append("intro", getIntro())
                .append("price", getPrice())
                .append("originPrice", getOriginPrice())
                .append("soldNum", getSoldNum())
                .append("spuStockQuantity", getSpuStockQuantity())
                .append("thumb", getThumb())
                .append("orderNum", getOrderNum())
                .append("status", getStatus())
                .append("available", getAvailable())
                .toString();
    }
}
